package com.Iron.Service.Impl;

import com.Iron.Dao.Impl.UserDaoImpl;
import com.Iron.Dao.UserDao;
import com.Iron.Service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userService")
public class UserServiceImpl implements UserService {


    @Autowired
    @Qualifier("userDao")
    private UserDao userDao2;


    @Autowired
    public void getUser(List<UserDao> list){
        System.out.println("自动打印: " + list);
    }

    public void call() {
        System.out.println("调用了 "+ userDao2);
    }
}
